package com.yc.mybatis.students.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 该表用于记录学生选课情况以及关联对应的授课教师和成绩等信息，建立起学生、课程、教师之间多对多的关系
 * </p>
 *
 * @author k
 * @since 2024-12-08
 */
@Getter
@Setter
@TableName("student_courses")
public class StudentCourses implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer recordId;

    @TableField("student_id")
    private Integer studentId;

    @TableField("course_id")
    private Integer courseId;

    @TableField("teacher_id")
    private Integer teacherId;

    @TableField("grade")
    private Integer grade;
}
